<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/oa/documentInfo.js?time=' + sys_get_time();
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			aidQueryUser_documentInfo();
		}
	});
})
</script>

<div class="widget" style="margin:0px;">
	<div>
		<h3 class="title" style="display:inline-block">请选择用户</h3>
		<h3 class="title" style="float:right;">按钮说明：
			<a class="btn" href="javascript:;"><i class="icon-plus-sign"></i> 增加</a>
			<a class="btn" href="javascript:;"><i class="icon-remove-sign"></i> 删除</a>
			</h3>
	</div>
	<input type="hidden" id="u_p" value="${p}"/>
	<div class="widget-content">
		<div class="table-title">
			<form id="aidQueryForm">
				<table class="search_term_table">
					<tr>
						<th style="width: 40px;">姓名</th>
						<td style="width: 60px;"><input type="text" class="txt_organ_dName" name="realName" style="width:60px;" onkeypress="javascript: if(event.keyCode == '13') {aidQueryUser_documentInfo(); return false;}" /></td>
						<td style="text-align: right;">
							<a href="#" class="btn btn-info" onclick="javascript:aidQueryUser_documentInfo();"><i class="fontello-icon-search-5"></i>&nbsp;查&nbsp;&nbsp;询&nbsp;</a>
							<a class="btn btn-info" href="javascript:;" onclick="javascript:chooseUser_documentInfo();"><i class="fontello-icon-ok-circle"></i> 选择完成</a>
						</td>
					</tr>
				</table>
			</form>
			<div>
				<div id="aidQueryResultList" style="width:550px; float:left;"></div>
				<table class="table boo-table table-striped table-content table-hover bg-blue-light" style="width:370px; float:right;">
					<thead>
						<tr><th colspan="3" scope="col">已选择接收人</th></tr>
					</thead>
					<tbody id="selectedListBody">
						<#list list as u>
							<tr class="rep">
								<td>${u.realName}</td>
								<td>${u.on}</td>
								<td style="width:30px;">
								<a class="btn btn-small btn-noradius" href="javascript:;" onclick="javascript:deleteUser_documentInfo($(this));">
									<i class="icon-cancel-circle"></i>
								</a>
										<input type="hidden" class="run" value="${u.code}" />
										<input type="hidden" class="un" value="${u.realName}" />
								</td>
							</tr>
						</#list>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>
<input type="hidden" id="t" value="${(type)!''}"/>
<input type="hidden" id="old_oc" value="${(a)!''}"/>
<table id="tempTable" style="display:none;">
	<tr class="rep">
		<td class="rn"></td>
		<td class="on"></td>
		<td style="width:30px;">
		<a class="btn" href="javascript:;" onclick="javascript:deleteUser_documentInfo($(this));">
			<i class="icon-remove-sign"></i>
		</a>
			<input type="hidden" class="run" value="" />
			<input type="hidden" class="un" value="" />
	</tr>
</table>